using System;
using ZR.Model;

namespace ZR.Model.System.Dto
{
    /// <summary>
    /// 表元数据查询参数
    /// </summary>
    public class TableMetadataQueryDto : PagerInfo
    {
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 类型（PPI/DBS等）
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 库名
        /// </summary>
        public string SchemaName { get; set; }

        /// <summary>
        /// 开始日期（根据syncTime字段过滤）
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 结束日期（根据syncTime字段过滤）
        /// </summary>
        public DateTime? EndTime { get; set; }
    }

    /// <summary>
    /// 表元数据返回项
    /// </summary>
    public class TableMetadataDto
    {
        public long Id { get; set; }

        public string TableName { get; set; }

        public string DatePrefix { get; set; }

        public string DayPrefix { get; set; }

        public string City { get; set; }

        public string Type { get; set; }

        public string SchemaName { get; set; }

        public DateTime SyncTime { get; set; }
    }
}

